export const SET_TOKEN  = (state,token) => {
	state.user.token = token;
};
export const SET_USERNAME=(state,username)=>{
	state.user.name=username;
}
export const UNSET_USER  = (state) => {
	state.user = {
		token:null,
		name:'',
		auth:0
	};
};
export const FETCH_ORDER_SUCCESS=(state,orders)=>{
	state.orders=orders;
}
//更改用户权限
export const CHANGE_USER_AUTH  = (state,auth) => {
	state.user.auth = auth;
};
